﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace ParticeInClass
{
    class HelpMoney
    {
        public User Owner; //账户所有者
        public int EnableAmount = 1000;  //可用金额
        public int DisableAmount; //冻结金额
        public int Vary; //变动金额
        DateTime Now =DateTime.Now;   //当前时间
        public String Remark; //备注
        public String Kind; //类型

        public void AccountFrozen()
        {
            EnableAmount -= DisableAmount;
            Vary = DisableAmount; 

        }

        public void TradRecord()
        {
            Console.WriteLine(Now + "进行了" + Kind + "操作，金额" + Vary + "备注：" + Remark);
            Console.WriteLine("目前可用金额:" + EnableAmount + "冻结金额:" + DisableAmount);
        }
    }
}
